package com.kl.drs.mapper.drs;

import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.kl.drs.bean.bo.DrsLdcomRelationBO;
import com.kl.drs.bean.bo.RelationIdBO;
import com.kl.drs.bean.bo.RelationMappingBO;

/**
 * 银行对接
 * @author WYN
 *
 */
public interface BankButtjointMapper {
	/**
	 * 新增关联证件
	 */
	public int addIdTypeRel(RelationIdBO relationIdBO);
	/**
	 * 新增关联编码
	 */
	public int addMappingTypeRel(RelationMappingBO relationMappingBO);
	
	/**
	 * 查询关联证件(证件编码和证件类型)
	 */
	public RelationIdBO queryIdTypeRel(Map<String, String> condMap);
	/**
	 * 查询关联机构(机构编码和机构类型)
	 */
	public RelationMappingBO queryMappingTypeRel(Map<String, String> condMap);
	
	/**
	 * 联查查询关联机构
	 * @param relationCode
	 * @param bankRelationType
	 * @param reRelationType
	 * @return
	 */
	public String queryIdcodeByUnion(String relationCode,String bankRelationType,String reRelationType);
	
	/**
	 * 查询机构关联
	 */
	public  DrsLdcomRelationBO queryDrsLdcomRel(@Param("manageCom") String manageCom);
}
